﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using MyCompanyName.AbpZeroTemplate.Persons;

namespace MyCompanyName.AbpZeroTemplate.Persons.EntityMapper.Persons
{

    /// <summary>
    /// 联系人的数据配置文件
    /// </summary>
    public class PersonCfg : EntityTypeConfiguration<Person>
    {
        /// <summary>
        ///  构造方法[默认链接字符串 <see cref="AbpZeroTemplateDbContext"/> ]
        /// </summary>
        public PersonCfg()
        {
            ToTable("Person", AbpZeroTemplateConsts.SchemaName.Basic);
            
            //// 姓名
            //Property(a => a.Name).HasMaxLength(4000);
            //// Email
            //Property(a => a.Email).HasMaxLength(4000);
        }
    }
}